import request from '../utils/request'
import requestB from '../utils/requestB'

export const getList = (userid) =>{
    return request.post('/common/Handler.ashx',{
        userid
    })
}
export const imgUpload=(formData)=>{
   return requestB
    .post("/users/upload", formData, {
      //请求后端图片上传接口
      headers: {
        enctype: "multipart/form-data",//跟后端约定数据包格式
      },
    })
}
export const userUpdate=(userid,newInfo)=>{//更新用户信息
return requestB.put('/users',{userid,newInfo})
}
